#!/usr/bin/gnuplot

set term postscript eps font "Times-Roman,12" color
#set size 5.0, 3.0
set output "plot.eps"

#set format xy "$%g$"

set title 'barrier benchmark'

#set xlabel '$nb$ number of blocks'
#set ylabel 'normalized kernel\\ runtime time (\us)'
set xlabel 'Thread blocks'
set ylabel 'Time per invocation (\us)'

#set key at 15,-10
set key top left

plot "oneloop_32.dat"  using 1:2 title  "32 thr, oneloop" with lp, \
     "oneloop_64.dat"  using 1:2 title  "64 thr, oneloop" with lp, \
     "oneloop_128.dat" using 1:2 title "128 thr, oneloop" with lp, \
     "oneloop_256.dat" using 1:2 title "256 thr, oneloop" with lp, \
     "oneloop_512.dat" using 1:2 title "512 thr, oneloop" with lp

#pause -1
#pause mouse keypress